﻿using ExpressionTree;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExpressionTreeTest
{
    class Program
    {
        public class Model
        {
            public string Name { get; set; }
            public int Age { get; set; }
        }
        static void Main(string[] args)
        {
            var sql = new MyOrm<Model>().Select(m => new { m.Name, m.Age }).Where(m => (m.Age+5) > 10).ToString();
            var value = new ExpressionCore().ExpressionHandler<Model>(m => new { m.Name, m.Age });
            value = new ExpressionCore().ExpressionHandler<Model>(m => m.Name);
            value = new ExpressionCore().ExpressionHandler1<Model>(m => m.Name.Contains("sfds") && m.Age + 10 > 10);
        }
    }
}
